package main

import (
	"fmt"
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
)

const (
	DSN = "root:Huixj2023!@#@(101.37.32.199:184)/ait?charset=utf8mb4&parseTime=True&loc=Local"
)

func main() {
	db, err := gorm.Open(mysql.Open(DSN), &gorm.Config{})
	if err != nil {
		fmt.Printf("db connect error: %s\n", err.Error())
		return
	}
	for i := 200; i <= 201; i++ {
		db.Exec("insert INTO t_miapp_access_daily_log(mi_type, time, `status`)VALUES(?, '2025-04-03 00:00:00', 0)", i)
		db.Exec("insert INTO t_miapp_access_daily_log(mi_type, time, `status`)VALUES(?, '2025-04-11 00:00:00', 0)", i)
		//db.Exec("insert INTO t_miapp_access_daily_log(mi_type, time, `status`)VALUES(?, '2025-03-28 00:00:00', 0)", i)
		//db.Exec("insert INTO t_miapp_access_daily_log(mi_type, time, `status`)VALUES(?, '2025-03-17 00:00:00', 0)", i)
		//db.Exec("insert INTO t_miapp_access_daily_log(mi_type, time, `status`)VALUES(?, '2025-03-08 00:00:00', 0)", i)

	}

}
